package com.ruge.controller;

import com.ruge.service.DataBaseService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("database")
public class DataBaseController {

    @Resource
    private DataBaseService dataBaseService;

    // 查询 ORACLE表注释
    @PostMapping("getColComments")
    public Map<String, Object> getColComments(@RequestBody Map<String, String> params) {
        return dataBaseService.getColComments(params);
    }

    // 修改 ORACLE表注释
    @PostMapping("updateColComments")
    public Map<String, Object> updateColComments(@RequestBody Map<String, String> params) {
        return dataBaseService.updateColComments(params);
    }
}
